package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.AdPositionDao;
import com.ericom.model.AdPosition;

@Repository("adPositionDao")
public class AdpositionDaoHibernate extends GenericDaoHibernate<AdPosition, Long>
		implements AdPositionDao {

	

	public AdpositionDaoHibernate() {
		super(AdPosition.class);
	}

	@Override
	public List<AdPosition> findByName(String name) {
		return this.getHibernateTemplate().find("from AdPosition where name=?",name);
	}

}
